package cc.yugu.yhdw.common.constant;

import java.nio.charset.Charset;
/**
 * 定义一些常量
 * 
 * @Date:Created in 2018/7/24 17:27
 * @Author:
 * @Modified By: zjn 2018/7/24 17:27
 */ 
public class Constant {

    public final static int ADMIN_USER_ID = 1;

    public final static String SESSION_KEY_USER = "SESSION_KEY_USER";
    public final static String SESSION_AUTH_CODE = "SESSION_KEY_AUTH_CODE";
    public final static String DEFAULT_PASSWORD = "123456";

    public final static String ENCODING_UTF_8 = "UTF-8";
    public final static Charset CHARSET_UTF_8 = Charset.forName(ENCODING_UTF_8);

    public final static String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public final static String DATE_FORMAT = "yyyy-MM-dd";

    public final static String HTTP_HEADER_COMMUNITY_TIMESTAMP = "Community-Timestamp";
    public final static String HTTP_HEADER_COMMUNITY_SIGNATURE = "Community-Signature";

    public final static String DOWNLOAD_APP_URL = "%s/security/download/download_app.htm?v=%s";
}
